package com.ruoyi.system.domain.vo;

import java.util.Date;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.excel.annotation.ExcelDictFormat;
import com.ruoyi.common.excel.convert.ExcelDictConvert;
import com.ruoyi.common.translation.annotation.Translation;
import com.ruoyi.common.translation.constant.TransConstant;
import lombok.Data;
import java.util.Date;
import java.io.Serializable;

/**
 * 工单对象视图对象
 *
 * @author ruoyi
 * @date 2024-04-08
 */
@Data
@ExcelIgnoreUnannotated
public class HnWorkOrderVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "id")
    private Long id;

    /**
     * 名称
     */
    @ExcelProperty(value = "名称")
    private String name;

    /**
     * 部门id
     */
    @ExcelProperty(value = "部门id")
    private Long deptId;

    /**
     * 部门名称
     */
    @Translation(type = TransConstant.DEPT_ID_TO_NAME,mapper = "deptId")
    @ExcelProperty(value = "部门名称")
    private String deptName;

    /**
     * 工单状态
     */
    @ExcelProperty(value = "工单状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "hn_work_status")
    private Long status;

    /**
     * 工单描述
     */
    @ExcelProperty(value = "工单描述")
    private String info;

    /**
     * 当前处理人
     */
    @ExcelProperty(value = "当前处理人")
    private Long assignedUserId;

    /**
     * 最终解决人
     */
    @ExcelProperty(value = "最终解决人")
    private Long troubleshootUserId;

    /**
     * 描述资源图片组ids
     */
    @ExcelProperty(value = "描述资源图片组ids")
    private String ossIds;

    /**
     * 描述资源图片组urls
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL,mapper = "ossIds")
    @ExcelProperty(value = "描述资源图片组urls")
    private String ossUrls;

    /**
     * 处理完成时间
     */
    @ExcelProperty(value = "处理完成时间")
    private Date completionTime;

    /**
     * 最终耗时
     */
    @ExcelProperty(value = "最终耗时")
    private String elapsedTime;

}
